html {
    -ms-touch-action: none;
    font-size: 16px;
}

body,
canvas,
div {
    display: block;
    outline: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;

    /* <-- Apparently some margin are still there even though it's hidden */
}

body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    cursor: default;
    color: #888;
    background-color: #333;
    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;
    display: flex;
    flex-direction: column;

    /* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */

    /* overflow cannot be applied in Cocos2dGameContainer,
    otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
    overflow: hidden;
}

#Cocos2dGameContainer {
    position: absolute;
    margin: 0;
    left: 0;
    top: 0;
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

canvas {
    background-color: rgba(0, 0, 0, 0);
}

a:link,
a:visited {
    color: #666;
}

a:active,
a:hover {
    color: #666;
}

p.header {
    font-size: small;
}

p.footer {
    font-size: x-small;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

#loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0b0c0d;
}

.loading-progress {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 50%;
    color: #6680ac;
    font-size: 1.5rem;
}

.loading-progress .icon {
    display: block;
    width: 10rem;
    height: 10rem;
    margin: auto;
    margin-bottom: 3rem;
}
@media screen and (orientation: portrait) {
    .loading-progress {
        width: 80%;
    }

    .loading-progress .icon {
        width: 11rem;
        height: 11rem;
        margin-bottom: 4rem;
    }
}

.loading-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background-color: transparent;
    background-image: url("./wave.28d93.png");
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    background-clip: border-box;
}

.progress-bar {
    position: relative;
    height: 28px;
    width: 100%;
    padding: 0 14px;
    margin-bottom: 32px;
    background-color: #263347;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3);
    border-radius: 14px;
}

.progress-bar .bar {
    position: absolute;
    display: block;
    height: 8px;
    border-radius: 4px;
    background-color: #2c3a52;
    top: 50%;
    transform: translateY(-50%);
}

.progress-bar .track {
    left: 16px;
    right: 16px;
}

.progress-bar .progress {
    position: absolute;
    left: auto;
    right: auto;
    max-width: 100%;
    min-width: 0;
    text-align: right;
    background-image: linear-gradient(180deg, #8cf1ff 0%, #1067b7 100%);
    transition: width 0.3s ease;
}

.progress-bar .progress .progress-text {
    display: inline-block;
    position: absolute;
    bottom: 26px;
    right: 0;
    transform: translateX(50%);
    font-size: 1rem;
    color: #75cad8;
}

.progress-bar .progress .progress-text::after {
    display: block;
    content: "";
    margin: auto;
    margin-top: 2px;
    height: 10px;
    width: 9px;
    background-image: url("./point@3x.81f3d.png");
    background-repeat: no-repeat;
    background-size: contain;
}
